package boot.spring.service.impl;

import boot.spring.entity.Department;
import boot.spring.mapper.DepartmentMapper;
import boot.spring.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired/*调用部门表的持久层*/
    private DepartmentMapper departmentMapper;

    @Override /*获取用户的上下班时间*/
    public Department DepSerAlltime(Integer uid) {
        return departmentMapper.DepMapAlltime(uid);
    }
}
